package cn.ruituo.adv;

import java.util.Arrays;

public class StrTest3 {
    public static void main(String[] args) {
        String str="We change lives you and me and everyone";
        String[]ar=str.split("");
        for(String s:ar)
            System.out.println(s);
        //System.out.println(Arrays.toString(ar));
        String s="我们%s班%d位同学,都知道圆周率是%f";
        String s3=String.format(s,"java72",26,3.1415926);
        System.out.println(s3);
    }
}
